package com.battle.pojo.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.battle.pojo.check.SensitiveEntity;
import com.battle.pojo.check.SensitiveField;
import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import lombok.Data;
import nirvana.core.domains.ann.AccEntity;
import nirvana.core.domains.entity.DomainBaseEntity;
import nirvana.core.domains.enums.EntityType;

import java.time.LocalDate;

/**
 * @author anni.zhu
 * @author anni.zhu@king-v.com
 * Created in 2024/10/10 14:25
 * 健康档案
 */
@Data
@TableName(value = "HEALTH_RECORD",autoResultMap = true)
@Entity(name = "HEALTH_RECORD")
@AccEntity(value = "健康档案", type = EntityType.SERVICE_ENTITY)
@SensitiveEntity
public class HealthRecord extends DomainBaseEntity<HealthRecord> {
    /**
     * 人员id
     */
    @Column()
    private Long userId;

    /**
     * 类型：0-身体健康，1-心理健康
     */
    @Column()
    private Integer type;

    /**
     * 体检时间 yyyy-MM-dd
     */
    @Column()
    private LocalDate healthTime;

    /**
     * 文件地址
     */
    @Column()
    @SensitiveField
    private String fileUrl;

    /**
     * 文件地址_hmac
     */
    @Column()
    private String fileUrlHmac;


}
